<div class="form">
    <?php
    echo CHtml::beginForm('', 'post');
    /*
     * @var $model AddRoleForm
     * */
    ?>
    <div class="row">
        <?php echo CHtml::activeLabel($model, 'name'); ?>
        <?php echo CHtml::activeTextField($model, 'name');?>
        <?php echo CHtml::error($model, 'name');?>
    </div>
    <div class="row">
        <?php echo CHtml::activeLabel($model, 'type'); ?>
        <?php echo CHtml::activeRadioButtonList($model, 'type', array(0 => 'Hành động', 1 => 'Tác vụ', 2 => 'Quyền'));?>
        <?php echo CHtml::error($model, 'type');?>
    </div>
    <div class="row">
        <?php echo CHtml::activeLabel($model, 'description'); ?>
        <?php echo CHtml::activeTextArea($model, 'description');?>
        <?php echo CHtml::error($model, 'description');?>
    </div>
    <div class="row">
        <?php echo CHtml::activeLabel($model, 'bizrule'); ?>
        <?php echo CHtml::activeTextArea($model, 'bizrule');?>
        <?php echo CHtml::error($model, 'bizrule');?>
    </div>
    <div class="row">
        <?php echo CHtml::activeLabel($model, 'data'); ?>
        <?php echo CHtml::activeTextArea($model, 'data');?>
        <?php echo CHtml::error($model, 'data');?>
    </div>
    <div class="row">
        <?php echo CHtml::activeLabel($model, 'parents'); ?>
        <?php echo CHtml::activeTextField($model, 'parents');?>
        <?php echo CHtml::error($model, 'parents');?>
    </div>
    <div class="row">
        <?php echo CHtml::activeLabel($model, 'children'); ?>
        <?php echo CHtml::activeTextField($model, 'children');?>
        <?php echo CHtml::error($model, 'children');?>
    </div>
    <div class="row">
        <?php echo CHtml::submitButton('Submit'); ?>
    </div>
    <?php
    echo CHtml::endForm();
    ?>
</div>